<template>
	<view class="follow" v-if="user">
		<news-nav icon_left="icon-fanhuijiantou" :title="user.userName"></news-nav>
		<follow-swiper 
		class="followswiper" :index="index" v-if="index"></follow-swiper>
	</view>
</template>

<script>
	import t from '../../common/helper.js';
	import NewsNav from '../../components/NewsNav.vue';
	import FollowSwiper from '../../components/FollowSwiper.vue';
	
	export default {
		data() {
			return {
				user: '',
			}
		},
		components: {
			NewsNav,
			FollowSwiper,
		},
		created() {
			this.user = uni.getStorageSync('user')[0];
		},
		props: ['index'],
	}
</script>

<style>
	.follow {
		height: 100%;
	}
	.followswiper {
		height: 100%;
	}
</style>
